package com.thinkgem.jeesite.modules.sys.dao;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.sys.entity.TbAdvertise;
import com.thinkgem.jeesite.modules.sys.entity.TbAdvertiseExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@MyBatisDao
public interface TbAdvertiseMapper extends CrudDao<TbAdvertise>{
    int countByExample(TbAdvertiseExample example);

    int deleteByExample(TbAdvertiseExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TbAdvertise record);

    int insertSelective(TbAdvertise record);

    List<TbAdvertise> selectByExample(TbAdvertiseExample example);

    TbAdvertise selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TbAdvertise record, @Param("example") TbAdvertiseExample example);

    int updateByExample(@Param("record") TbAdvertise record, @Param("example") TbAdvertiseExample example);

    int updateByPrimaryKeySelective(TbAdvertise record);

    int updateByPrimaryKey(TbAdvertise record);

    List<TbAdvertiseMapper> getAdvertiseList();

    List findByPage(TbAdvertise advertise);
}